<%@ page import="service.serviceimpl.ServiceImpl" %>
<%@ page import="entity.T163" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
我爱你们164,擦边球分段来玩

<%
    ServiceImpl service = new ServiceImpl();
    List<T163> t163s = service.executeQuery("select * from t163");
%>
<table border="4">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>sex</th>
        <th>pwd</th>
        <th>操作</th>
    </tr>
    <%for(T163 xjj : t163s){
        %>
    <tr>
        <td><%=xjj.id%></td>
        <td><%=xjj.name%></td>
        <td><%=xjj.sex%></td>
        <td><%=xjj.pwd%></td>
        <td>修改
          <a href="controller.jsp?id=<%=xjj.id%>"> <input class="sc" type="button" value="删除"></a>
           </td>
    </tr>
   <% }%>

</table>
<span style="color: red"><%=request.getParameter("isdelete")==null?"":"删除成功"%></span>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$("tr:odd").css("background-color","yellow");
$(".sc").click(function () {
      if( confirm("删除吗")) {

      }else{
          return false;
      }
});
</script>
</body>
</html>
